package thread.threaddemo;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/02/18:51
 * @Description:直接命名线程名称的方式
 */
public class ThraedDemo10 {
    public static void main(String[] args) {
        Thread thread=new Thread("线程1"){
            @Override
            public void run() {
                try {
                    Thread.sleep(60*60*1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        thread.start();
    }
}
